package com.dragon.datastructure.hash;

/**
 * hashCode测试
 *
 * @author dragon
 * @since 2019/12/27
 */
public class HashCodeTest {

    public static void main(String[] args) {
        int a = 26;
        System.out.println(((Integer) a).hashCode());
        int b = -26;
        System.out.println(((Integer) b).hashCode());
        double c = 2.6;
        System.out.println(((Double) c).hashCode());
        String s = "dragon";
        System.out.println(s.hashCode());

        System.out.println(((Character) 'a').hashCode());

    }
}
